/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link LoadAjax}.
 * </p>
 *
 * @author    tuan.nguyen
 * @see       LoadAjax
 * @generated
 */
public class LoadAjaxWrapper implements LoadAjax, ModelWrapper<LoadAjax> {
	public LoadAjaxWrapper(LoadAjax loadAjax) {
		_loadAjax = loadAjax;
	}

	public Class<?> getModelClass() {
		return LoadAjax.class;
	}

	public String getModelClassName() {
		return LoadAjax.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("loadAjaxId", getLoadAjaxId());
		attributes.put("loadWeb", getLoadWeb());
		attributes.put("ajax", getAjax());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long loadAjaxId = (Long)attributes.get("loadAjaxId");

		if (loadAjaxId != null) {
			setLoadAjaxId(loadAjaxId);
		}

		String loadWeb = (String)attributes.get("loadWeb");

		if (loadWeb != null) {
			setLoadWeb(loadWeb);
		}

		String ajax = (String)attributes.get("ajax");

		if (ajax != null) {
			setAjax(ajax);
		}
	}

	/**
	* Returns the primary key of this load ajax.
	*
	* @return the primary key of this load ajax
	*/
	public long getPrimaryKey() {
		return _loadAjax.getPrimaryKey();
	}

	/**
	* Sets the primary key of this load ajax.
	*
	* @param primaryKey the primary key of this load ajax
	*/
	public void setPrimaryKey(long primaryKey) {
		_loadAjax.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the load ajax ID of this load ajax.
	*
	* @return the load ajax ID of this load ajax
	*/
	public long getLoadAjaxId() {
		return _loadAjax.getLoadAjaxId();
	}

	/**
	* Sets the load ajax ID of this load ajax.
	*
	* @param loadAjaxId the load ajax ID of this load ajax
	*/
	public void setLoadAjaxId(long loadAjaxId) {
		_loadAjax.setLoadAjaxId(loadAjaxId);
	}

	/**
	* Returns the load web of this load ajax.
	*
	* @return the load web of this load ajax
	*/
	public java.lang.String getLoadWeb() {
		return _loadAjax.getLoadWeb();
	}

	/**
	* Sets the load web of this load ajax.
	*
	* @param loadWeb the load web of this load ajax
	*/
	public void setLoadWeb(java.lang.String loadWeb) {
		_loadAjax.setLoadWeb(loadWeb);
	}

	/**
	* Returns the ajax of this load ajax.
	*
	* @return the ajax of this load ajax
	*/
	public java.lang.String getAjax() {
		return _loadAjax.getAjax();
	}

	/**
	* Sets the ajax of this load ajax.
	*
	* @param ajax the ajax of this load ajax
	*/
	public void setAjax(java.lang.String ajax) {
		_loadAjax.setAjax(ajax);
	}

	public boolean isNew() {
		return _loadAjax.isNew();
	}

	public void setNew(boolean n) {
		_loadAjax.setNew(n);
	}

	public boolean isCachedModel() {
		return _loadAjax.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_loadAjax.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _loadAjax.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _loadAjax.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_loadAjax.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _loadAjax.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_loadAjax.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new LoadAjaxWrapper((LoadAjax)_loadAjax.clone());
	}

	public int compareTo(com.swt.mto.thithu.model.LoadAjax loadAjax) {
		return _loadAjax.compareTo(loadAjax);
	}

	@Override
	public int hashCode() {
		return _loadAjax.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.swt.mto.thithu.model.LoadAjax> toCacheModel() {
		return _loadAjax.toCacheModel();
	}

	public com.swt.mto.thithu.model.LoadAjax toEscapedModel() {
		return new LoadAjaxWrapper(_loadAjax.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _loadAjax.toString();
	}

	public java.lang.String toXmlString() {
		return _loadAjax.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_loadAjax.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public LoadAjax getWrappedLoadAjax() {
		return _loadAjax;
	}

	public LoadAjax getWrappedModel() {
		return _loadAjax;
	}

	public void resetOriginalValues() {
		_loadAjax.resetOriginalValues();
	}

	private LoadAjax _loadAjax;
}